package com.aspose.cells;

class zbi {
   int a;
   int b;
   int c;
   int d = -1;
   int e;
   Chart f;

   zbi(Chart var1, int var2, boolean var3) {
      this.f = var1;
      this.c = 1;
      if (var3) {
         this.a(var2);
      }

   }

   void a(int var1) {
      this.a = (int)((double)((float)(this.f.getChartObject().getWidth() * 20) * 72.0F / (float)this.f.j().L()) + 0.5D - 135.0D);
      this.b = (int)((double)((float)(this.f.getChartObject().getHeight() * 20) * 72.0F / (float)this.f.j().L()) + 0.5D - 135.0D);
      if ((this.b & '\uffff') > 32767 || (this.a & '\uffff') > 32767) {
         this.a = 0;
         this.b = 0;
      }

      this.e = var1 * 20;
   }

   void a(zbi var1) {
      this.a = var1.a;
      this.b = var1.b;
      this.c = var1.c;
      this.d = var1.d;
      this.e = var1.e;
   }

   boolean a(zbi var1, Font var2) {
      if (this.d == -1) {
         return false;
      } else {
         return this.a == var1.a && this.b == var1.b && this.c == var1.c ? this.a().a(var2) : false;
      }
   }

   Font a() {
      return this.d != -1 ? (Font)this.f.j().z().get(this.d > 4 ? this.d - 1 : this.d) : null;
   }
}
